package cn.hg.solon.youcan.web.controller.demo;

import org.noear.solon.annotation.Controller;
import org.noear.solon.annotation.Mapping;
import org.noear.solon.core.handle.Context;
import org.noear.solon.core.handle.MethodType;

import cn.hg.solon.youcan.common.controller.BaseController;

/**
 * @author 胡高
 */
@Controller
@Mapping("/pear")
public class PearController extends BaseController {

    @Mapping(path = "", method = MethodType.GET)
    public void index(Context ctx) {
        ctx.redirect("/pear/index.html");
    }
}
